package cn.tang.tframe.sdm.web.shiro.session;

import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;

/**
 * Created by tanghc on 17/2/13.
 */
public class AppWebSessionManager extends DefaultWebSessionManager {
	long globalSessionTimeoutSec = DEFAULT_GLOBAL_SESSION_TIMEOUT/MILLIS_PER_SECOND;

	public long getGlobalSessionTimeoutSec() {
		return globalSessionTimeoutSec;
	}

	public void setGlobalSessionTimeoutSec(long globalSessionTimeoutSec) {
		this.globalSessionTimeoutSec = globalSessionTimeoutSec;
		this.setGlobalSessionTimeout(this.globalSessionTimeoutSec * MILLIS_PER_SECOND);
	}
}
